<?xml version="1.0" ?>
<project name="JarBuild" basedir="." default="archive">
    <target name="init" description="Initialize properties">
        <property name="project.name" value="GuessingGame"/>
        <property name="src.dir" value="src"/>
        <property name="build.dir" value="build"/>
        <property name="classes.dir" value="${build.dir}/classes"/>
        <property name="etc.dir" value="etc"/>
    </target>
    <target name="prepare" description="Create the build and classes directories" depends="init">
        <mkdir dir="${classes.dir}"/>
    </target>
    <target name="compile" description="Compiles our code" depends="prepare">
        <javac srcdir="${src.dir}" destdir="${classes.dir}" includeantruntime="false"/>
    </target>
    <target name="archive" description="Archives the bytecode" depends="compile">
        <jar destfile="${build.dir}/${project.name}.jar" basedir="${classes.dir}" manifest="etc/MANIFEST.MF"/>
    </target>
    <target name="clean" description="Cleans my SHIT up" depends="init">
        <delete dir="${build.dir}"/>
    </target>
</project>
